package sctu.edu.java.year2016.team02.luoxi.day20160521.chapter4_3;

/**
 * Created by luoxi on 2016/5/22.
 *  1/1!+1/2!~1/20!
 **/
public class summultiply {


    public static void main(String[] args) {
        int i=1,m=1;double sum=0;
        while(i<=20)
        {
            m=i*m;
            sum=sum+1.0/m;
            i++;
        }
System.out.println("sum="+sum);
    }
}